package com.sk.waste.app.activitys

import android.os.Bundle
import android.widget.Button
import com.lc.smc.lib.annotations.LCBindView
import com.sk.waste.app.R
import com.sk.waste.app.bases.BaseActiivity
import com.sk.waste.app.views.webview.LCWebView

/**
 *  @time 2025/4/25  17:11
 *  @desc webview
 */
class WebViewActivity : BaseActiivity() {

    @LCBindView(R.id.ac_detail_webview)
    private lateinit var webview: LCWebView

    override fun onCreate(savedInstanceState: Bundle?) {
        setContentView(R.layout.activity_webview)
        super.onCreate(savedInstanceState)
        setBack()
        val title = intent.getStringExtra("extral_title")
        val url = intent.getStringExtra("extral_path")
        setTitleView(title!!)
        webview.showView(url)
//        webview.showView("https://www.epai.shop/biddingDetail.html?projectId=1977631604079742977")
    }

    override fun onDestroy() {
        webview.destroy()
        super.onDestroy()
    }
}